package redis

import (
	"github.com/go-redis/redis"
)

var client *redis.Client

func GetInstance() *redis.Client {
	if client == nil {
		client = redis.NewClient(&redis.Options{
			Addr:     "116.62.201.42:6379",
			Password: "linfp",
			DB:       0,
		})
	}

	return client
}
